﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GameControls
{
    public static class MouseCapture
    {
        #region Properties
        private static ControlBase mCapturedControl;
        #endregion

        #region Methods
        public static void Capture(ControlBase pControl)
        {
            mCapturedControl = pControl;
        }

        public static ControlBase GetCaptured()
        {
            return mCapturedControl;
        }

        public static bool IsCaptured(ControlBase pControl)
        {
            return pControl != null ? mCapturedControl == pControl : false;
        }
        #endregion
    }
}